package com.wsl;

import com.wsl.config.AwareConfig;
import com.wsl.service.AwareService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.io.IOException;

/**
 * @Author:WangShuliang
 * @Description:
 * @Date:Created in 16:32 2017/11/24
 * @Modified by:
 */
public class Main {
    public static void main(String[] args) throws IOException {
        AnnotationConfigApplicationContext context = new
                AnnotationConfigApplicationContext(AwareConfig.class);
        AwareService awareService = context.getBean(AwareService.class);
        awareService.outputResult();
        context.close();
    }
}